package com.infra.micro.id.domain.service;

import com.infra.micro.id.domain.entity.IdAppPO;
import com.infra.micro.id.model.req.QueryIdTokenByCondReq;
import com.infra.common.resp.PageEx;
import com.infra.common.resp.Response;

public interface IdAppService {
    Response<IdAppPO> queryByAppId(Integer appId);

    Response<Integer> update(Integer appId, IdAppPO record);

    Response<Integer> insert(IdAppPO record);

    Response<PageEx<IdAppPO, QueryIdTokenByCondReq>> queryByPage(QueryIdTokenByCondReq req);

    Response<Boolean> refreshCache();

    Response<String> generateSecretKey() throws Exception;
}
